﻿namespace TestUp.Models.Helpers
{
    public class DataHelpers
    {
        private static UserInfoHelper userInfoHelper;
        public static UserInfoHelper UserInfoHelper
        {
            get
            {
                if(userInfoHelper == null) userInfoHelper = new UserInfoHelper();
                return userInfoHelper;
            }
        }

        private static TestHelper testHelper;
        public static TestHelper TestHelper
        {
            get
            {
                if (testHelper == null) testHelper = new TestHelper();
                return testHelper;
            }
        }

        private static CourseHelper courseHelper;
        public static CourseHelper CourseHelper
        {
            get
            {
                if (courseHelper == null) courseHelper = new CourseHelper();
                return courseHelper;
            }
        }

        private static PermissionHelper permissionHelper;
        public static PermissionHelper PermissionHelper
        {
            get
            {
                if (permissionHelper == null) permissionHelper = new PermissionHelper();
                return permissionHelper;
            }
        }

        private static GroupHelper groupHelper;
        public static GroupHelper GroupHelper
        {
            get
            {
                if (groupHelper == null) groupHelper = new GroupHelper();
                return groupHelper;
            }
        }

        private static PendingTestsHelper pendingTestsHelper;
        public static PendingTestsHelper PendingTestsHelper
        {
            get
            {
                if (pendingTestsHelper == null) pendingTestsHelper = new PendingTestsHelper();
                return pendingTestsHelper;
            }
        }

        private static PassingResultHelper passingResultHelper;
        public static PassingResultHelper PassingResultHelper
        {
            get
            {
                if (passingResultHelper == null) passingResultHelper = new PassingResultHelper();
                return passingResultHelper;
            }
        }
    }
}